_ssss_tttt_rrrr_tttt_oooo_llll returns as a long integer the value represented by the character
string pointed to by _ssss_tttt_rrrr. The string is scanned up to the first
character inconsistent with the base. Leading ``white-space'' characters
[as defined by _iiii_ssss_ssss_pppp_aaaa_cccc_eeee in _cccc_tttt_yyyy_pppp_eeee(3C)] are ignored.
If the value of _p_t_r is not _((((_cccc_hhhh_aaaa_rrrr _****_****_))))_NNNN_UUUU_LLLL_LLLL, a pointer to the character
terminating the scan is returned in the location pointed to by _p_t_r. If
no integer can be formed, that location is set to _ssss_tttt_rrrr, and zero is
returned.
If _b_a_s_e is between 2 and 36, inclusive, it is used as the base for
conversion. After an optional leading sign, leading zeros are ignored,
and ``_0000_xxxx'' or ``_0000_XXXX'' is ignored if _b_a_s_e is 16.
If _b_a_s_e is zero, the string itself determines the base as follows: After
an optional leading sign a leading zero indicates octal conversion, and a
leading ``_0000_xxxx'' or ``_0000_XXXX'' hexadecimal conversion. Otherwise, decimal
conversion is used.
Truncation from _llll_oooo_nnnn_gggg to _iiii_nnnn_tttt can, of course, take place upon assignment or
by an explicit cast.
If the value represented by _s_t_r would cause overflow, _LLLL_OOOO_NNNN_GGGG______MMMM_AAAA_XXXX or
_LLLL_OOOO_NNNN_GGGG______MMMM_IIII_NNNN is returned (according to the sign of the value), and _eeee_rrrr_rrrr_nnnn_oooo is
set to the value, _EEEE_RRRR_AAAA_NNNN_GGGG_EEEE.
_ssss_tttt_rrrr_tttt_oooo_uuuu_llll is similar to _ssss_tttt_rrrr_tttt_oooo_llll except that _ssss_tttt_rrrr_tttt_oooo_uuuu_llll returns as an unsigned
long integer the value represented by _s_t_r. If the value represented by
_s_t_r would cause overflow, _UUUU_LLLL_OOOO_NNNN_GGGG______MMMM_AAAA_XXXX is returned, and _eeee_rrrr_rrrr_nnnn_oooo is set to the
_ssss_tttt_rrrr_tttt_oooo_llll_llll is similar to _ssss_tttt_rrrr_tttt_oooo_llll except that _ssss_tttt_rrrr_tttt_oooo_llll_llll returns as a long long
integer the value represented by _s_t_r. If the value represented by _s_t_r
would cause overflow, _LLLL_OOOO_NNNN_GGGG_LLLL_OOOO_NNNN_GGGG______MMMM_AAAA_XXXX or _LLLL_OOOO_NNNN_GGGG_LLLL_OOOO_NNNN_GGGG______MMMM_IIII_NNNN is returned (according
to the sign of the value), and _eeee_rrrr_rrrr_nnnn_oooo is set to the value, _EEEE_RRRR_AAAA_NNNN_GGGG_EEEE.
_ssss_tttt_rrrr_tttt_oooo_uuuu_llll_llll is similar to _ssss_tttt_rrrr_tttt_oooo_llll_llll except that _ssss_tttt_rrrr_tttt_oooo_uuuu_llll_llll returns as an
unsigned long long integer the value represented by _s_t_r. If the value
represented by _s_t_r would cause overflow, _UUUU_LLLL_OOOO_NNNN_GGGG_LLLL_OOOO_NNNN_GGGG______MMMM_AAAA_XXXX is returned, and
_eeee_rrrr_rrrr_nnnn_oooo is set to the value, _EEEE_RRRR_AAAA_NNNN_GGGG_EEEE.
Except for behavior on error, _aaaa_tttt_oooo_llll_((((_ssss_tttt_rrrr_)))) is equivalent to: